package cn.wolfcode.mq._02_send_type;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(
        consumerGroup = "boot-consumer-demo3",
        topic = "03_oneWay"
)

public class OneWayConsumer implements RocketMQListener<String> {

    @Override
    public void onMessage(String s) {
        System.out.println("消费的消息为:"+s);
    }
}
